<?php

/**
 * Gère la configuration du arduino 
 */

namespace Acme\DomotiqueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity
 * @ORM\Table(name="data")
 */
class Data
{
    /**
     * @ORM\Id 
     * @ORM\Column(type="integer") 
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    /**
     * @ORM\Column(type="string")
     */
    protected $arduino_id;
	/**
     * @ORM\Column(type="integer") 
     */
	protected $pin_id;
	/** 
     * @ORM\Column(type="text") 
     */
	protected $value;

    /**
     * Set pin_id
     *
     * @param integer $pinId
     * @return ArduinoConfig
     */
    public function setPinId($pinId)
    {
        $this->pin_id = $pinId;
    
        return $this;
    }

    /**
     * Get pin_id
     *
     * @return integer 
     */
    public function getPinId()
    {
        return $this->pin_id;
    }

    /**
     * Set value
     *
     * @param string $value
     * @return ArduinoConfig
     */
    public function setValue($value)
    {
        $this->value = $value;
    
        return $this;
    }

    /**
     * Get value
     *
     * @return string 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set arduino_id
     *
     * @param integer $arduinoId
     * @return Data
     */
    public function setArduinoId($arduinoId)
    {
        $this->arduino_id = $arduinoId;
    
        return $this;
    }

    /**
     * Get arduino_id
     *
     * @return integer 
     */
    public function getArduinoId()
    {
        return $this->arduino_id;
    }
}